home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Commands / PIndexFormat.cpp < prev    next >
C/C++ Source or Header  |  1996-09-04  |  1KB  |  44 lines

  1. /*
  2.  *--- PIndexFormat.cpp ----------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 4:19 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PIndexFormat.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PIndexFormat.h"
  12. #include "PRequestBuf.h"
  13. #include "PCommand.h"
  14.  
  15. PIndexFormat::PIndexFormat
  16.   (    PMBool            bHeadings,
  17.     PMBool            bEmpties,
  18.     short            cFormat,
  19.     const char *    sFollow,
  20.     const char *    sBetPgeNbrs,
  21.     const char *    sBetEntries,
  22.     const char *    sPageRange,
  23.     const char *    sBeforeXRef,
  24.     const char *    sEnd)
  25. {
  26.     PRequestBuf request(strlen(sFollow) + strlen(sBetPgeNbrs)
  27.         + strlen(sBetEntries) + strlen(sPageRange)
  28.         + strlen(sBeforeXRef) + strlen(sEnd) + 32);
  29.  
  30.     request    << bHeadings
  31.             << bEmpties
  32.             << cFormat
  33.             << sFollow
  34.             << sBetPgeNbrs
  35.             << sBetEntries
  36.             << sPageRange
  37.             << sBeforeXRef
  38.             << sEnd;
  39.             
  40.     PCommand command(pm_indexformat, request);
  41. }
  42.  
  43. // end of PIndexFormat.cpp
  44.